<?php

namespace app\dev;

/**
 * 具体版本更新程序继承
 */
class Common{

    public function __construct($obj)
    {
        if(is_null($obj)){
            throw new \Exception("Invalid input out Object Of updateController");
        }
        $this->obj = $obj;
    }

    public function __call($name, $arguments)
    {
        try{
            call_user_func_array([$this->obj,$name],$arguments);
        }catch(\Exception $e){
            throw $e;
        }
    }
}